package com.cloxtec.scada.service;

import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;


@Slf4j
@Component
public class TaskReportTableData extends QuartzJobBean {

    @Resource
    private RealTimeData realTimeData;

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        String taskId = context.getJobDetail().getJobDataMap().getString("taskId");
        log.info(new Date() + "————开始执行报表定时任务，报表id：" + taskId);

    }
}
